<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: chen_yt
 * @Date: 2022-07-04 13:43:30
 * @LastEditors: chen_yt
 * @LastEditTime: 2022-08-09 14:13:30
-->
<template>
  <component :is="getMainComponent"></component>
</template>
<script>
import { IS_SAAS_MODE } from '@/store/Getter/getterTypes.js'
export default {
  name: 'Client',
  computed: {
    getMainComponent() {
      if (this.$store.getters[IS_SAAS_MODE]) {
        return () => import('./mainComponent/saas')
      }
      return () => import('./mainComponent/saas')
      // 若非saas模式下需要使用旧版的应用管理，请使用下方return的组件
      // return () => import('./mainComponent/notSaas')
    }
  }
}
</script>